﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="admin_tin_tuc_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Kimland - Quản trị nội dung</title>
    <script type="text/javascript">
        $(function () {
            $(".headerR li:eq(3)").addClass("active");
            var catID = $("input[id*=hidCatID]").val();
            var divObj = $("div[boxid=" + catID + "]");
            if ($(divObj).html()!=null)
                $("div[boxid=" + catID + "]").addClass("active");
            else
                $("div[boxid=171]").addClass("active");
        })
    </script>
    <script src="/Scripts/menuLeft.js" type="text/javascript"></script>
    <style type="text/css">
        .boxMenuL:hover a,.boxMenuL.active a{color:#d80018;text-decoration:none;text-transform:uppercase;}
        .boxMenuL:hover,.boxMenuL.active{margin-bottom:5px;}
        .boxMenuL:hover .l,.boxMenuL.active .l{background:url(/images/sm_l.png) no-repeat;}
        .boxMenuL:hover .m,.boxMenuL.active .m{background:url(/images/sm_m.png) repeat-x;}
        .boxMenuL:hover .r,.boxMenuL.active .r{background:url(/images/sm_r.png) no-repeat;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="body">
    <div class="bodyL">
        <p class="gOval"><a href="/admin/tin-tuc/default.aspx" class="tintuc"></a></p>
        <div class="menuL">
            <div class="boxMenuL">
                <span class="l"></span><span class="m"><a href="/admin/category/default.aspx?id=171">Chuyên mục tin</a></span><span class="r"></span>                   
            </div>               
        </div>
        <div class="menuL">
            <div class="boxMenuL" rel="slHuong" boxid="171">
                <span class="l"></span><span class="m"><a href="?id=171">Các bài tin</a></span><span class="r"></span>                   
            </div>
            <div class="leftMenu" id="slHuong">
                <ul >
                <asp:Repeater ID="repNewsCat" runat="server">
                    <ItemTemplate>
                    <li>                
                        <a href='?id=<%# Eval("id") %>'><%# Eval("catName") %></a>
                    </li>    
                    </ItemTemplate>
                </asp:Repeater>
                </ul>
                <p class="bl"></p><p class="bm"></p><p class="br"></p>
            </div>
        </div>
         <p class="hrDotted"></p>
        <div class="menuL">
            <div class="boxMenuL" boxid="172">
                <span class="l"></span><span class="m"><a href="?id=172">Thông báo</a></span><span class="r"></span>                   
            </div>            
        </div>
         <p class="hrDotted"></p>
        <div class="menuL">
            <div class="boxMenuL"  boxid="173">
                <span class="l"></span><span class="m"><a href="?id=173">Tuyển dụng </a></span><span class="r"></span>                   
            </div>        
        </div>
       
    </div>
           
    <div class="bodyR">
        <div class="topCatBR">
            <p class="l"></p>
            <div class="m">
                <p class="pos">
                    <asp:Literal ID="litPos" runat="server"></asp:Literal>
                </p>
            </div>
            
            <p class="r"></p>
        </div>
        <div class="boxBorder" style="height:500px;min-height:500px;height:auto">
            <asp:Panel ID="pnGioiThieu" runat="server">
            <div class="lineheight20">
            <p class="red">Chức năng của module</p>
            1. Quản lý các chuyên mục tin tức<br />
            2. Soạn thảo, cập nhật nội dung các bài tin trong các mục tin tức, thông báo, tuyển dụng<br />
            </div>
            </asp:Panel>
            <asp:Panel ID="pnModule" runat="server">
            <div class="info_div" id="fail" runat="server" visible="false">        
                <asp:Label ID="lblMessage" runat="server" Text="" CssClass="ico_cancel"></asp:Label>
            </div>
            <asp:Button ID="btnXoa" runat="server" Text="Xóa" CssClass="buttonA" OnClientClick="return doDel();" onclick="btnDel_Click"/>
            <asp:LinkButton ID="lnkThem" runat="server" CssClass="buttonA" onclick="lnkThem_Click">Thêm mới</asp:LinkButton>
    
            <table id="table">
	            <thead>
	            <tr>
		            <th><input type="checkbox" class="noborder" onclick="doCheckAll(this)"/></th>
		            <th>Tiêu đề</th>
		            <th>Giới thiệu</th>
		            <th>Lượt xem</th>
                    <th>Action</th>
	            </tr>
	            </thead>
	            <tbody>
                <asp:Repeater ID="repNews" runat="server">
                <ItemTemplate>
                <tr>
		            <td class="table_check">
                        <input type="checkbox" id='<%# Eval("id") %>' group='check'/>
                    </td>
		            <td class="table_title">
                        <img src='<%# LIB.App_Constant.PATH_UP_CONTENT + "/" + Eval("contentAvatar")%>' class="imgAdmin"/>
                        <a href='#'><%# Eval("contentTitle")%> </a>
                    </td>		        
		            <td><%# LIB.ConvertUtility.ExtractString(Eval("contentSummary").ToString(),100) +"..."%></td>
		            <td><%# Eval("contentVisited")%></td>
                    <td><a href='/admin/tin-tuc/editor.aspx?id=<%# Eval("id") %>&catID=<%# Eval("contentCatID.id") %>' class="graybut">Sửa</a></span></td>
	            </tr>
                </ItemTemplate>
                </asp:Repeater>	        
	            </tbody>
            </table>
	          <div class="page" style="text-align:center;margin:15px 0px">
                <asp:Label ID="pagerbot" CssClass="pager" runat="server" Text=""></asp:Label>
            </div>
            <asp:HiddenField ID="hidKeyDel" runat="server" /> 
            <asp:HiddenField ID="hidCatID" runat="server" /> 
            </asp:Panel>
        </div>
    </div>
</div>
</asp:Content>


